﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataModels.Entities.Base
{
    [SugarTable("building")]
    public class Building
    {
        /// <summary>
        /// 主键UUID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsNullable = false, ColumnName = "UUID", Length = 36)]
        public string UUID { get; set; }

        /// <summary>
        /// 楼栋名称
        /// </summary>
        [SugarColumn(ColumnName = "buildName", Length = 100, IsNullable = false)]
        public string BuildName { get; set; }

        /// <summary>
        /// 楼栋Id
        /// </summary>
        [SugarColumn(ColumnName = "buildId", IsNullable = false)]
        public int BuildId { get; set; }

        /// <summary>
        /// 项目id
        /// </summary>
        [SugarColumn(ColumnName = "organId", IsNullable = true)]
        public int? OrganId { get; set; }

        /// <summary>
        /// 第三方楼栋ID
        /// </summary>
        [SugarColumn(ColumnName = "thirdBuildId", Length = 50, IsNullable = true)]
        public string ThirdBuildId { get; set; }

        /// <summary>
        /// 区域Id
        /// </summary>
        [SugarColumn(ColumnName = "areaId", IsNullable = true)]
        public int? AreaId { get; set; }

        /// <summary>
        /// 楼栋层数
        /// </summary>
        [SugarColumn(ColumnName = "buildFloor", IsNullable = true)]
        public int? BuildFloor { get; set; }

        /// <summary>
        /// 楼栋编码
        /// </summary>
        [SugarColumn(ColumnName = "buildCode", Length = 50, IsNullable = true)]
        public string BuildCode { get; set; }

        /// <summary>
        /// 楼栋状态
        /// </summary>
        [SugarColumn(ColumnName = "buildStatus", Length = 20, IsNullable = true)]
        public string BuildStatus { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "changeTime", IsNullable = true)]
        public DateTime? ChangeTime { get; set; }
    }
}
